import request from '@/request/request'

// 创建用户关注关系
export function createFollow(data) {
    return request({
        url: '/app/follow/create',
        method: 'post',
        data: data
    })
}

// 更新用户关注关系
export function updateFollow(data) {
    return request({
        url: '/app/follow/update',
        method: 'put',
        data: data
    })
}

// 删除用户关注关系
export function deleteFollow(id) {
    return request({
        url: '/app/follow/delete?id=' + id,
        method: 'delete'
    })
}

// 获得用户关注关系
export function getFollow(id) {
    return request({
        url: '/app/follow/get?id=' + id,
        method: 'get'
    })
}

// 获得用户关注关系分页
export function getFollowPage(params) {
    return request({
        url: '/app/follow/page',
        method: 'post',
        data:params
    })
}
// 导出用户关注关系 Excel
export function exportFollowExcel(params) {
    return request({
        url: '/app/follow/export-excel',
        method: 'get',
        params,
        responseType: 'blob'
    })
}
